package com.itheima;

import com.itheima.utils.DateUtils;

import java.util.Calendar;

public class dingshirenwuDemo {
    public static void main(String[] args) throws Exception {

        //创建日历
        Calendar calendar = Calendar.getInstance();

        //返回12个月以前
        calendar.add(Calendar.MONTH,-9);
        String str = DateUtils.parseDate2String(calendar.getTime(),"yyyy-MM");
        str += "-6";
        System.out.println(str);


    }
}
